package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.GetmoneyApplyMapper;
import com.whq.entity.GetmoneyApply;
import com.whq.service.GetmoneyApplyService;

@Service(value = "tdGetmoneyApplyService")
public class GetmoneyApplyServiceImpl implements GetmoneyApplyService {

    @Autowired
    private GetmoneyApplyMapper<GetmoneyApply>tdGetmoneyApplyMapper;
    
    @Override
    public Integer insertSelective(GetmoneyApply tdGetmoneyApply) throws Exception {
           return this.tdGetmoneyApplyMapper.insertSelective(tdGetmoneyApply);
        }

    @Override
    public Integer insertBatch(List<GetmoneyApply> tdGetmoneyApply) throws Exception {
           return this.tdGetmoneyApplyMapper.insertBatch(tdGetmoneyApply) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdGetmoneyApplyMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdGetmoneyApplyMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(GetmoneyApply tdGetmoneyApply) {
           return this.tdGetmoneyApplyMapper.updateByPrimaryKeySelective(tdGetmoneyApply);
    }

    @Override
    public GetmoneyApply findById(Object id) {
           return (GetmoneyApply) this.tdGetmoneyApplyMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<GetmoneyApply> selectByCondition(GetmoneyApply tdGetmoneyApply) {
           return (List<GetmoneyApply>) this.tdGetmoneyApplyMapper.selectByCondition(tdGetmoneyApply);
    }

    @Override
    public Integer selectCountByCondition(GetmoneyApply tdGetmoneyApply) {
           return  this.tdGetmoneyApplyMapper.selectCountByCondition(tdGetmoneyApply);
    }

}
